package com.hy.appbase.page;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class PageResult <T>{

    private List<T> data;

    private long total = 0;

    public PageResult(){
        this.total = 0;
        this.data = new ArrayList<T>();
    }

    public PageResult(List<T> data, long total) {
        this.data = data;
        this.total = total;
    }
}
